package org.zoomdev.zoom.dao.naming.impl;

import org.zoomdev.zoom.common.utils.NameCaseConverter;
import org.zoomdev.zoom.dao.naming.NameAdapter;

/**
 * 驼峰式命名规则
 *
 * @author jzoom
 */
public final class CamelNameAdapter implements NameAdapter {

    public static final NameAdapter DEFAULT = new CamelNameAdapter();


    public CamelNameAdapter() {
    }


    @Override
    public String getFieldName(String column) {
        return CamelNameMapping.DEFAULT.getMapping(column);
    }


    @Override
    public String getColumnName(String field) {

        return NameCaseConverter.toSnakeCase(field);
    }


}
